package com.mdd.common.enums;

/**
 * 通知枚举类
 */
public enum NoticeEnum {

    SMS_LOGIN_CODE(101, "登录验证码"),
    SMS_BIND_MOBILE_CODE(102, "绑定手机验证码"),
    SMS_CHANGE_MOBILE_CODE(103, "变更手机验证码"),
    SMS_FORGOT_PASSWORD_CODE(104, "找回登录密码验证码"),

    U_ORDER_PAY(201, "订单付款通知"),
    U_ORDER_CANCEL(202, "系统取消订单通知"),
    U_ORDER_REFUND(203, "退款成功通知"),
    U_WORKER_CONFIRM(204, "师傅确认服务通知"),
    U_ORDER_COMPLETE(205, "订单完成通知"),

    P_ORDER_PAY(206, "订单付款通知平台"),
    P_ORDER_DISPATCH(209, "订单派单成功通知"),
    P_ORDER_NotCONSUMED(211, "订单未被接单，发送消息"),    // 开启了

    F_ORDER_STAY_CONFIRM(207, "师傅订单通知"),         // 开启了
    F_CANCEL_DISPATCH_ORDER(210, "平台取消派单通知"),
    ;

    /**
     * 构造方法
     */
    private final int code;
    private final String msg;
    NoticeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * 获取状态码
     *
     * @author fzr
     * @return Long
     */
    public int getCode() {
        return this.code;
    }

    /**
     * 获取提示
     *
     * @author fzr
     * @return String
     */
    public String getMsg() {
        return this.msg;
    }

}
